package com.shiliuzi.www.pojo.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Record {
    private Integer id;
    /**
     * 奖惩类型
     */
    private RecordType type;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 年级
     */
    private Integer grade;

    /**
     * 学号
     */
    private String number;

    /**
     * 日期
     */
    private Date date;

    /**
     * 奖惩内容
     */
    private String content;

    /**
     * 奖惩原因
     */
    private String reason;

    /**
     * 奖惩金额
     */
    private String money;

    /**
     * 奖惩备注
     */
    private String comment;

    /**
     * 是否撤销
     */
    private Integer isCancel;

    /**
     * 是否申述
     */
    private Integer isInfo;

    /**
     * 附件路径
     */
    private String pathFile;

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", type=" + type +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", grade=" + grade +
                ", number='" + number + '\'' +
                ", date=" + date +
                ", content='" + content + '\'' +
                ", reason='" + reason + '\'' +
                ", money='" + money + '\'' +
                ", comment='" + comment + '\'' +
                ", isCancel=" + isCancel +
                ", isInfo=" + isInfo +
                ", pathFile='" + pathFile + '\'' +
                '}';
    }
}
